<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>怡臣 | 店铺管理</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/Public/admin/adminlte/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="/Public/admin/adminlte/plugins/font-awesome/font-awesome.min.css">
    <!-- Ionicons -->
    <!--link rel="stylesheet" href="/Public/admin/adminlte/plugins/ionicons/ionicons.min.css"-->
    <!-- Theme style -->
    <link rel="stylesheet" href="/Public/admin/adminlte/dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="/Public/admin/adminlte/dist/css/skins/_all-skins.min.css">
    <!-- iCheck -->
    <link rel="stylesheet" href="/Public/admin/adminlte/plugins/iCheck/flat/blue.css">
    <!-- Morris chart -->
    <link rel="stylesheet" href="/Public/admin/adminlte/plugins/morris/morris.css">
    <!-- jvectormap -->
    <link rel="stylesheet" href="/Public/admin/adminlte/plugins/jvectormap/jquery-jvectormap-1.2.2.css">
    <!-- Date Picker -->
    <link rel="stylesheet" href="/Public/admin/adminlte/plugins/datepicker/datepicker3.css">
    <!-- Daterange picker -->
    <link rel="stylesheet" href="/Public/admin/adminlte/plugins/daterangepicker/daterangepicker.css">
    <!-- bootstrap wysihtml5 - text editor -->
    <link rel="stylesheet" href="/Public/admin/adminlte/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="/Public/admin/adminlte/plugins/html5shiv/html5shiv.min.js"></script>
    <script src="/Public/admin/adminlte/plugins/html5shiv/respond.min.js"></script>
    <![endif]-->
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">


    <!-- 内容页 -->
    <div>


        <!-- 内容 -->
        <section class="content">
            <div class="tab-content">
                <div class="tab-pane active" id="tab_0">
                    <form action="/admin/storeGoods/labelSave" method="post" class="form">
                    <div class="box">
                        <!-- /.box-header -->
                        <div class="box-body table-responsive no-padding">
                            <table class="table table-hover">
                                <tbody>
                                <tr>
                                    <th></th>
                                    <th>标签</th>


                                </tr>
                                <tr>
                                    <td></td>
                                      <td>
                                          <input type="hidden" value="{$id}" name="id" />
                                          <foreach name="label" item="v" >
                                                  <label class="btn btn-sm btn-success labels">{$v.label_name}<input <?php if(in_array($v['label_id'], $product_label)) { echo 'checked'; } ?> class="btn btn-sm" type="checkbox" value="{$v.label_id}" name="label[]" /></label>
                                          </foreach>
                                      </td>


                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="box-footer clearfix">

                            <a class="btn btn-sm btn-primary grid-refresh save">保存</a>

                        </div>
                        <!-- /.box-body -->
                    </div>
                    </form>
                </div>


            </div>
        </section>
    </div>
    <!-- 底部 -->
</div>

</body>
</html>
<script src="/Public/admin/adminlte/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script>
    $('.save').click(function () {
        $('.form').submit();
    })
</script>


